package com.zbf;

import com.zbf.config.TestLunXun;
import com.zbf.config.VoidScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;
import org.springframework.cloud.netflix.ribbon.RibbonClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.FilterType;

/**
 * @author: LCG
 * 作者: LCG
 * 日期: 2021/6/18  11:05
 * 描述:
 */
@RibbonClients(value = {
        @RibbonClient(value = "EUREKA-CLIENT2",configuration = {TestLunXun.class})
})
@ComponentScan(
        excludeFilters = {
                @ComponentScan.Filter(type = FilterType.ANNOTATION,value = {VoidScan.class})
        }
)
@SpringBootApplication
@EnableEurekaClient
public class TestEurekaClient1 {
    public static void main(String[] args) {
        SpringApplication.run(TestEurekaClient1.class,args);
    }
}
